﻿

        <h3>Rss information</h3>

     <a href="./Rss/AddRss">Ajouter un flux</a>
 <table>
    @if (ViewBag.RssFeed != null)
    {
        foreach (var item in ViewBag.RssFeed)
        {
        <tr>
            <td>
                <b>@item.title</b><a href="@item.link" target="_blank"> more </a> Ajouté le @Convert.ToDateTime(item.date)
                <br />
            </td>
            <td>
                <a href="./Rss/ListRss?id=@item.id">Visualiser les news</a>
            </td>
        </tr>
        }
    }
    
</table>
   @if (ViewBag.RssFeed == null)
    {
       <p>Aucune information a afficher</p>
    }